import Vue from 'vue'
import VueRouter from "vue-router";


import FooterIndex from '@/views/FooterIndex'
import Index from '@/views/Index'
import House from '@/views/House'
import InforMation from '@/views/InforMation'
import HomeIndex from '@/views/HomeIndex'


//
import HouseDetails from '@/views/HouseDetails'
Vue.use(VueRouter)

const router = new VueRouter({
    routes: [{
            path: '/',
            redirect: '/footer'
        },
        {
            path: '/footer',
            component: FooterIndex,
            children: [{
                    path: '/index',
                    component: Index
                },
                {
                    path: '/house',
                    component: House,

                }, {
                    path: '/information',
                    component: InforMation
                }, {
                    path: '/home',
                    component: HomeIndex
                }



            ]
        },
        {
            path: '/housedetails/:id?',
            component: HouseDetails

        }
    ]
    // mode: 'history'

})

export default router